package cn.charlotte.pit.perk.type.shop;

import cn.charlotte.pit.perk.*;
import org.bukkit.Material;
import org.bukkit.entity.Player;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Araykal
 * @since 2025/2/4
 */
public class SwordBundleShopPerk extends TypedPerk<PerksShopEnum> {

    @Override
    public String getInternalPerkName() {
        return getType().name();
    }

    @Override
    public String getDisplayName() {
        return "神话之剑收纳箱";
    }

    @Override
    public Material getIcon() {
        return Material.CHEST_MINECART;
    }

    @Override
    public double requireCoins() {
        return 0.0;
    }

    @Override
    public double requireRenown(int level) {
        return 30.0;
    }

    @Override
    public int requirePrestige() {
        return 20;
    }

    @Override
    public int requireLevel() {
        return 0;
    }

    @Override
    public PerkType getPerkType() {
        return PerkType.PERK;
    }

    @Override
    public PerkGroup getPerkGroup() {
        return PerkGroup.SHOP;
    }

    @Override
    public List<String> getDescription(Player player) {
        List<String> lines = new ArrayList<>();
        lines.add("&7允许你在商店中购买神话之剑收纳箱.");
        lines.add("&7神话之剑收纳箱使用后会打包背包内");
        lines.add("&710条&c未附魔&7的神话之剑.");
        lines.add("&7并允许你随时将其取出.");
        return lines;
    }

    @Override
    public int getMaxLevel() {
        return 1;
    }

    @Override
    public void onPerkActive(Player player) {
        // 无额外逻辑
    }

    @Override
    public void onPerkInactive(Player player) {
        // 无额外逻辑
    }
}
